package cn.sso.app.controller;

import cn.ifloat.brick.sprofile.sso.init.server.SsoAuthorityAction;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @author: float 2023/4/23 15:25
 */
@Component
public class ExampleAuthAction implements SsoAuthorityAction {

    @Override
    public List<String> permissions(Object o, String s) {
        System.out.println("!!!!!!!!![ permissions ]!!!!!!!!!!!");
        List<String> result = Arrays.asList("a", "b", "c","aaaa1");
        return result;
    }

    @Override
    public List<String> roles(Object o, String s) {
        System.out.println("!!!!!!!!![ roles ]!!!!!!!!!!!");
        List<String> result = Arrays.asList("A", "B", "C","vvvvv");
        return result;
    }
}
